$OpenBSD: patch-main_php_ini_c,v 1.2 2014/12/02 09:41:07 brad Exp $
--- main/php_ini.c.orig.port	Wed Nov 12 08:52:21 2014
+++ main/php_ini.c	Tue Dec  2 04:27:06 2014
@@ -576,7 +576,7 @@ int php_init_config(TSRMLS_D)
 
 		/* If still no ini file found, search for php.ini file in search path */
 		if (!fh.handle.fp) {
-			fh.handle.fp = php_fopen_with_path("php.ini", "r", php_ini_search_path, &php_ini_opened_path TSRMLS_CC);
+			fh.handle.fp = php_fopen_with_path("php-${PV}.ini", "r", php_ini_search_path, &php_ini_opened_path TSRMLS_CC);
 			if (fh.handle.fp) {
 				fh.filename = php_ini_opened_path;
 			}
